﻿/**
 * Trasliteration regular expression rules table for Kannada
 * @author M G Harish [[user:M G Harish]]
 * Modified by User:HPNadig (User:HPN on en)
 * @date 2010-12-25
 * License: GPLv3, CC-BY-SA 3.0
 */
 var rules = [
['ಕ್h','c','ಚ್'],
['\\\\([A-Za-z\\>_~\\.0-9])','\\\\','$2'],
// For users accustomed to Baraha
['ಜ್್j', '','ಜ್ಞ್'],
['([ಕ-ಹೞ]಼?)್a', '','$2'],
['([ಕ-ಹೞ]಼?)್A', '','$2ಾ'],
['([ಕ-ಹೞ]಼?)a', '','$2ಾ'],
['([ಕ-ಹೞ]಼?)್i', '','$2ಿ'],
['([ಕ-ಹೞ]಼?)(್I|ಿi|ೆe)', '','$2ೀ'],
['([ಕ-ಹೞ]಼?)್u', '','$2ು'],
['([ಕ-ಹೞ]಼?)(ುu|್U|ೊo)', '','$2ೂ'],
['([ಕ-ಹೞ]಼?)್R', '','$2ೃ'],
['([ಕ-ಹೞ]಼?)ೃR', '','$2ೄ'],
['([ಕ-ಹೞ]಼?)್e', '','$2ೆ'],
['([ಕ-ಹೞ]಼?)್E', '','$2ೇ'],
['([ಕ-ಹೞ]಼?)i', '','$2ೈ'],
['([ಕ-ಹೞ]಼?)್o', '','$2ೊ'],
['([ಕ-ಹೞ]಼?)್O', '','$2ೋ'],
['([ಕ-ಹೞ]಼?)u', '','$2ೌ'],
['([ಕ-ಹೞ])್\\`', '','$2़್'],
 
['ಅa', '','ಆ'],
['(ಒo|ಉu)', '','ಊ'],
['ಅi', '','ಐ'],
['(ಇi|ಎe)', '','ಈ'],
['ಅu', '','ಔ'],
['ಋR', '','ೠ'],
['ಓ~M', '','ॐ'],
 
['~l', '','ೞ್'],
['~r', '','ಱ್'],
['q', '','ೞ್'],
['Q', '','ಱ್'],
['ಕ್h', '','ಖ್'],
['ಗ್h', '','ಘ್'],
['~g', '','ಙ್'],
['~N', '','ಙ್'],
['ಚ್h', '','ಛ್'],
['ಜ್h', '','ಝ್'],
['~j', '','ಞ್'],
['~n', '','ಞ್'],
['ಟ್h', '','ಠ್'],
['ಡ್h', '','ಢ್'],
['ತ್h', '','ಥ್'],
['ದ್h', '','ಧ್'],
['ಪ್h', '','ಫ್'],
['ಬ್h', '','ಭ್'],
['ಸ್h', '','ಶ್'],
['ಶ್h', '','ಷ್'],


['ಋa', '','ರ'],
['ಋA', '','ರಾ'],
['ಋi', '','ರಿ'],
['ಋI', '','ರೀ'],
['ಋu', '','ರು'],
['ಋU', '','ರೂ'],
['ಋe', '','ರೆ'],
['ಋE', '','ರೇ'],

['X', '','‌'], // 0x200C Zero width non-joiner
['x', '','‍'], // 0x200D Zero width joiner

['([ಕ-ಹೞ]಼?)ೃa', '','$2್ರ'],
['([ಕ-ಹೞ]಼?)ೃA', '','$2್ರಾ'],
['([ಕ-ಹೞ]಼?)ೃi', '','$2್ರಿ'],
['([ಕ-ಹೞ]಼?)ೃI', '','$2್ರೀ'],
['([ಕ-ಹೞ]಼?)ೃu', '','$2್ರು'],
['([ಕ-ಹೞ]಼?)ೃU', '','$2್ರೂ'],
['([ಕ-ಹೞ]಼?)ೃe', '','$2್ರೆ'],
['([ಕ-ಹೞ]಼?)ೃE', '','$2್ರೇ'],
['([ಕ-ಹೞ]಼?)ೃo', '','$2್ರೊ'],
['([ಕ-ಹೞ]಼?)ೃO', '','$2್ರೋ'],
['([ಕ-ಹೞ]಼?)ೃ\\~', '','$2್ರ್'],
 
['।\\.', '','॥'],
 
['a', '','ಅ'],
['b', '','ಬ್'],
['c', '','ಚ್'],
['d', '','ದ್'],
['e', '','ಎ'],
['g', '','ಗ್'],
['h', '','ಹ್'],
['i', '','ಇ'],
['j', '','ಜ್'],
['k', '','ಕ್'],
['l', '','ಲ್'],
['m', '','ಮ್'],
['n', '','ನ್'],
['o', '','ಒ'],
['p', '','ಪ್'],
['r', '','ರ್'],
['s', '','ಸ್'],
['t', '','ತ್'],
['u', '','ಉ'],
['(v|w)', '','ವ್'],
['y', '','ಯ್'],
['A', '','ಆ'],
['B', '','ಭ್'],
['C', '','ಛ್'],
['D', '','ಡ್'],
['E', '','ಏ'],
['G', '','ಘ್'],
['H', '','ಃ'],
['I', '','ಈ'],
['J', '','ಝ್'],
['K', '','ಖ್'],
['L', '','ಳ್'],
['M', '','ಂ'],
['N', '','ಣ್'],
['O', '','ಓ'],
['P', '','ಫ್'],
['R', '','ಋ'],
['S', '','ಶ್'],
['T', '','ಟ್'],
['U', '','ಊ'],
['(V|W)', '','ವ್'],
['Y', '','ಯ್'],
['(z|Z)', '','ಜ಼್'],
['(f|F)', '','ಫ಼್'],
['0', '','೦'],
['1', '','೧'],
['2', '','೨'],
['3', '','೩'],
['4', '','೪'],
['5', '','೫'],
['6', '','೬'],
['7', '','೭'],
['8', '','೮'],
['9', '','೯'],
['//', '','ಽ']
];

jQuery.narayam.addScheme( 'kn', {
    'namemsg': 'narayam-kn',
    'extended_keyboard': false,
    'lookbackLength': 3,
    'rules': rules
} ); 